<template>
<div class="top-info my-clearfix">
    <div class="top-avatar">
        <el-avatar :size="60" :src="avatarUrl"></el-avatar>
    </div>
    <div class="top-basic">
        <div>
            <span id="top-name">{{userName}}</span>
        </div>
        <div class="top-basic-space">
            <h4 class="top-sign">
                {{description}}
            </h4>
        </div>
    </div>
</div>
</template>

<script>
export default {
    name:"user",
    props:{
        avatarUrl:{
            type: String
        },
        userName:{
            type: String
        },
        description:{
            type: String
        }
    },
    data(){
        return {
        }
    }
}
</script>

<style>
.top-info {
    margin-left: 20px;
    padding-bottom: 16px;
}
.top-avatar {
    position: relative;
    float: left;
    width: 64px;
    height: 64px;
    border: 2px solid hsla(0, 0%, 100%, .4);
    border-radius: 52px;
}
.top-basic {
    float: left;
    color: white;
    font-size: 0;
    margin: 10px 0 0 20px;
    font-weight: 400;
}
#top-name {
    display: inline-block;
    margin-right: 5px;
    font-weight: 700;
    line-height: 18px;
    font-size: 18px;
    vertical-align: middle;
}
.top-basic-space {
    margin-top: 8px;
}
.top-sign {
    color: #d6dee4;
    font-size: 12px;
    line-height: 26px;
    height: 26px;
    width: 740px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
</style>